package com.usefullc.blog.param;
import com.usefullc.common.domain.BaseDomain;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.system.validator.UsefulPropertyVerify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 文章参数实体
 * @author: 星空
 * @date: 20220628
 */
@ApiModel
@Data
public class ArticleParam extends BaseDomain {


//useful_auto_generate_section_start

    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "ID")
    private Long id;

    @UsefulPropertyVerify(minLen=3, required=true, maxLen=100)
    @ApiModelProperty(notes = "标题")
    private String title;

    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "作者")
    private Long userId;

    @UsefulPropertyVerify(required=true)
    @ApiModelProperty(notes = "类目")
    private Long categoryId;

    @UsefulPropertyVerify(minLen=3, maxLen=200)
    @ApiModelProperty(notes = "关键字")
    private String keywords;

    @UsefulPropertyVerify(minLen=3, maxLen=1000)
    @ApiModelProperty(notes = "描述")
    private String description;

    @UsefulPropertyVerify(minLen=3, required=true, maxLen=1000000)
    @ApiModelProperty(notes = "内容")
    private String content;

    @UsefulPropertyVerify(min=0, max=1, required=true)
    @ApiModelProperty(notes = "原创")
    private Integer original;

    @UsefulPropertyVerify(min=0, max=10)
    @ApiModelProperty(notes = "来源")
    private Integer source;

    @UsefulPropertyVerify(min=0, max=1, required=true)
    @ApiModelProperty(notes = "开启回复")
    private Integer reply;

    @UsefulPropertyVerify(min=0, max=1, required=true)
    @ApiModelProperty(notes = "置顶")
    private Integer top;

    @UsefulPropertyVerify(min=0, max=1, required=true)
    @ApiModelProperty(notes = "推荐")
    private Integer recommend;

    @UsefulPropertyVerify(min=0, max=3, minLen=2, maxLen=50)
    @ApiModelProperty(notes = "标签")
    private List<String> tags;

    @UsefulPropertyVerify(minLen=3, maxLen=200)
    @ApiModelProperty(notes = "图片")
    private String imgUrl;

    @UsefulPropertyVerify(minLen=2, maxLen=300)
    @ApiModelProperty(notes = "文章地址")
    private String url;


//useful_auto_generate_section_end

}
